<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./js.js"></script>

    <form name="myForm" onsubmit="return validateForm()" method="post">
    名字: <input type="text" name="fname"><input type="submit" value="提交">
    </form>
        

        <form name="form01" onsubmit="return verification()"method="post" action="js.js">
    搜索：<input id="name01" type="text">
        <input type="submit" value="提交" >
        </form>

    input2：
    <input name="name02" type="text">
    <input type="submit" value="提交" onclick=" verification()" >


    搜索2：
    <form name="myForm" action="demo-form.php" onsubmit="return validateForm();" method="post">
        Email: <input type="text" name="email">
        <input type="submit" value="提交">
        </form>

    
    <input id="id1" type="number" min="100" max="300" required>
    <button onclick="verfivation02()">验证</button>

    <p>如果输入的数字小于 100 或大于300，会提示错误信息。</p>

<p id="demo"></p>
</body>
</html>